package com.avic.rong.course.showapi;

import com.avic.rong.api.HttpPostService;
import com.example.minato.minastore.BaseApi;
import com.example.minato.minastore.listener.HttpOnNextListener;
import com.trello.rxlifecycle2.components.support.RxAppCompatActivity;

import io.reactivex.Observable;
import retrofit2.Retrofit;

/**
 * Created by XinEr on 2019/8/10.
 * Describe:
 */
public class CultivateApi extends BaseApi {

    private String token;
    public CultivateApi(RxAppCompatActivity rxAppCompatActivity, HttpOnNextListener listener, String token) {
        super(rxAppCompatActivity, listener);
        this.token=token;
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostService httpPostService = retrofit.create(HttpPostService.class);
        return  httpPostService.getCultivate(token);
    }
}
